package com.employee.service.impl;

import com.employee.mapper.YZMMapper;
import com.employee.pojo.entry.YZM;
import com.employee.service.YZMService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Random;

@Service
public class YZMServiceImpl implements YZMService {

    @Autowired
    private YZMMapper yzmMapper;

    @Override
    public YZM getYZM() {
        // 生成随机数
        Integer random = new Random().nextInt(36) + 1;
        return yzmMapper.getYZM(random);
    }
}
